/*
 * @Author: your name
 * @Date: 2021-12-21 14:19:59
 * @LastEditTime: 2021-12-21 15:40:23
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \json-serveg:\桌面2\50htmljs\split\script.js
 */

const left = document.getElementsByClassName('left')[0]
const right = document.getElementsByClassName('right')[0]
const container = document.getElementsByClassName('container')[0]

left.addEventListener('mouseenter',()=>{container.classList.add('hover-left')})
left.addEventListener('mouseleave',()=>{container.classList.remove('hover-left')})

right.addEventListener('mouseenter',()=>{container.classList.add('hover-right')})
right.addEventListener('mouseleave',()=>{container.classList.remove('hover-right')})